
<?php get_header(); ?>
    <div id='content' class="grid_9"> 
    <div class='gray-box'>
    	<div class='gray-box-bg category-name-bg'>
			<h2>Category: <?php single_cat_title();?></h2>
		</div>
    </div>
    <?php
	 $posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=-1');
        if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
		<div class='member'>
		 <?php
            	$url = get_post_meta($post->ID, 'kda_memeber-site-url', true);       	
            ?>
			<div class="logo grid_3 alpha">
				<?php 
				if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
				?>
					<a href="<?php echo $url ?>" target="_blank"><?php the_post_thumbnail(); ?></a>
				<?php
				}
				?>
			</div>
            <div class="member-content grid_6 omega">
           
            	<a class="catLink" href="<?php echo $url; ?>" target="_blank"><?php the_title(); ?></a>
            	<?php the_content(); ?>
			</div>  
		</div>
		<div class='member-bg'>
		</div>
		<?php endwhile; ?>
            
        <?php endif; ?>
		 <div class="navigation">
			<div class="alignleft"><?php previous_posts_link('&laquo; Previous Entries') ?></div>
			<div class="alignright"><?php next_posts_link('Next Entries &raquo;','') ?></div>
		</div>

    </div>
   <?php get_sidebar(); ?> 
    <div class="clear"></div>
    
    
        
<?php get_footer(); ?>    
